package edu.nf.ch06.abs;

import edu.nf.ch06.product.Pad;
import edu.nf.ch06.product.Phone;

/**
 * @author wangl
 * @date 2025/4/15
 */
public class Main {

    public static void main(String[] args) {
        AbstractFactory factory = new AppleFactory();
        Phone phone = factory.createPhone();
        Pad pad = factory.createPad();
        phone.call();
        pad.play();
    }
}